/**
 * 项目名称：MSHF
 * 包名称：com.mt.edu.domain
 * 文件名称：Exercises.java
 */
package com.mt.edu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 类名称：Exercises <br>
 * 类描述： 某套练习题<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 28, 2014 10:12:17 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 28, 2014 10:12:17 PM <br>
 */
@Entity
@Table(name="OL_EXERCISES")
public class Exercises implements Serializable {

	private static final long serialVersionUID = 4939708250518766162L;

	@Id
	@Column(name = "EXERCISES_ID")
	private String id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="SUBJECT_ID")
	private Subject subject;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="GRADE_ID")
	private Grade grade;
	
	@Column(name = "EXERCISES_NAME")
	private String name;
	
	@Column(name = "EXERCISES_COVER_IMG")
	private String coverImagePath;
	
	@Column(name = "EXERCISES_NOTE")
	private String note;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="EXERCISES_CATEGORY_ID")
	private Category category;
	
	@Column(name = "EXERCISES_STATUS")
	private String status;
	
	@Column(name = "EXERCISES_BEGIN_TIME")
	private Date beginTime;
	
	@Column(name = "EXERCISES_END_TIME")
	private Date endTime;
	
	@Column(name = "EXERCISES_TIME_LONG")
	private Integer timeLong;
	
	@Column(name = "QUESTION_NUMS")
	private Integer questionNums;
	
	@Column(name = "TOTAL_SCORES")
	private Integer totalScores;
	
	@Column(name = "PASS_SCORES")
	private Integer passScores; 
	
	@Column(name = "EXERCISES_TAG")
	private String tag;
	
	@Column(name = "CREATE_DT")
	private Date createDt;
	
	@Column(name = "UPDATE_DT")
	private Date updateDt; 
	
	@Column(name = "OPERATOR")
	private String operator;
	
	@Column(name = "RESERVED1")
	private String reserved1;
	
	@Column(name = "RESERVED2")
	private String reserved2;
	
	@Column(name = "RESERVED3")
	private String reserved3;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public Grade getGrade() {
		return grade;
	}

	public void setGrade(Grade grade) {
		this.grade = grade;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCoverImagePath() {
		return coverImagePath;
	}

	public void setCoverImagePath(String coverImagePath) {
		this.coverImagePath = coverImagePath;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getTimeLong() {
		return timeLong;
	}

	public void setTimeLong(Integer timeLong) {
		this.timeLong = timeLong;
	}

	public Integer getQuestionNums() {
		return questionNums;
	}

	public void setQuestionNums(Integer questionNums) {
		this.questionNums = questionNums;
	}

	public Integer getTotalScores() {
		return totalScores;
	}

	public void setTotalScores(Integer totalScores) {
		this.totalScores = totalScores;
	}

	public Integer getPassScores() {
		return passScores;
	}

	public void setPassScores(Integer passScores) {
		this.passScores = passScores;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}
	
}
